package us.icitap.commandcenter.business.ejb.persistence;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="UNIQUE_NUMBER",schema="MPC")
public class UniqueNumber implements Serializable {

	@Id
	@Column(name="UNIQUE_NUMBER")
	private String uniqueNumber;
	
	@Column
	private String description;
	
	@ManyToOne
	@JoinColumn(name="REQUESTING_OFFICER_ID")
	private Officer requestingOfficer;
	
	@ManyToOne
	@JoinColumn(name="ORG_STRUCTURE_ID")
	private OrgStructure orgStructure;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RECORD_DATE")
	private Date recordDate;
	
	private boolean active;
	
	@Column(name="RECORD_USER")
	private String recordUser;
	
	@Column(name="DEACTIVATE_USER")
	private String deactivateUser;
	
	@Column(name="REASON_FOR_DEACTIVATION")
	private String reasonForDeactivation;

	public String getUniqueNumber() {
		return uniqueNumber;
	}

	public void setUniqueNumber(String uniqueNumber) {
		this.uniqueNumber = uniqueNumber;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Officer getRequestingOfficer() {
		return requestingOfficer;
	}

	public void setRequestingOfficer(Officer requestingOfficer) {
		this.requestingOfficer = requestingOfficer;
	}

	public OrgStructure getOrgStructure() {
		return orgStructure;
	}

	public void setOrgStructure(OrgStructure orgStructure) {
		this.orgStructure = orgStructure;
	}

	public Date getRecordDate() {
		return recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getRecordUser() {
		return recordUser;
	}

	public void setRecordUser(String recordUser) {
		this.recordUser = recordUser;
	}

	public String getDeactivateUser() {
		return deactivateUser;
	}

	public void setDeactivateUser(String deactivateUser) {
		this.deactivateUser = deactivateUser;
	}

	public String getReasonForDeactivation() {
		return reasonForDeactivation;
	}

	public void setReasonForDeactivation(String reasonForDeactivation) {
		this.reasonForDeactivation = reasonForDeactivation;
	}
	
}
